<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link href="__CSS__/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__CSS__/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="__CSS__/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
    <link href="__CSS__/animate.min.css" rel="stylesheet">
    <link href="__CSS__/style.min.css?v=4.1.0" rel="stylesheet">
    <link href="__CSS__/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <link href="__CSS__/plugins/iCheck/custom.css" rel="stylesheet">
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">

    <div class="row">
        <div class="col-sm-12">
            <div class="ibox-content p-xl">
                <div class="row">
                    <div class="col-sm-12 text-center">

                        <style>
                            .top>tbody>tr>td:last-child{
                                text-align:left;
                                width: 88%;
                            }
                        </style>
                        <table class="table invoice-total top" style="display: block; float: left;">
                            <tbody>
                            <tr>
                                <td><strong>姓名：</strong></td>
                                <td >{$info.real_name|default=''}</td>
                            </tr>
                            <tr>
                                <td><strong>联系方式：</strong></td>
                                <td>{$info.phone|default='无'}</td>
                            </tr>
                            <tr>
                                <td><strong>紧急联系人：</strong></td>
                                <td>{$info.mobile|default='无'}</td>
                            </tr>
                            <tr>
                                <td><strong>身份证号：</strong></td>
                                <td>{$info.identity|default='无'}</td>
                            </tr>
                            <tr>
                                <td><strong>保证金：</strong></td>
                                <td>{$info.baozhenjin|default='0'}元</td>
                            </tr>
                            <tr>
                                <td><strong>余额：</strong></td>
                                <td>{$info.yue|default='0'}元</td>
                            </tr>
                            <tr>
                                <td><strong>技能：</strong></td>
                                <td>{$info.fenleiid}</td>
                            </tr>
                            <tr>
                                <td><strong>服务区域：</strong></td>
                                <td>{$info.xian}</td>
                            </tr>
                            <tr>
                                <td><strong>身份证：</strong></td>
                                <td>
                                    {if condition = '$info.img eq "" '}暂无{/if}
                                </td>
                            </tr>
                            {if condition= '$info.img neq "" '}
                            <tr>
                                <td></td>
                                <td>
                                    {foreach $info.img as $v}
                                        <img src="{$v}" width="200px" height="150px">
                                    {/foreach}
                                </td>
                            </tr>
                            {/if}
                            <tr>
                                <td><strong>证书：</strong></td>
                                <td></td>
                            </tr>
                            {if condition= '$info.imgs neq ""'}
                            <tr>
                                <td> {if condition = '$info.imgs eq "" '}暂无{/if}</td>
                                <td>
                                    {foreach $info.imgs as $v}
                                    <img src="{$v}" width="200px" height="150px">
                                    {/foreach}
                                </td>
                            </tr>
                            {/if}
                            </tbody>
                        </table>
                        <div class="ibox float-e-margins">
                            <div class="ibox-title">
                                <h5>操作</h5>
                            </div>
                            <div class="ibox-content">
                                <form class="form-horizontal m-t" id="commentForm" method="post" action="{:url('edit')}">
                                    <input type="hidden" name="id" value="{$info.id}">
                                    <!--<div class="form-group">-->
                                        <!--<label class="col-sm-3 control-label">是否禁用：</label>-->
                                        <!--<div class="input-group col-sm-6">-->
                                                <!--<div class="radio i-checks col-sm-4">-->
                                                    <!--<label>-->
                                                        <!--<input type="radio" value="1" {if condition = '$info.xian eq 1'} checke {/if} name="status"> <i></i> 正常-->
                                                    <!--</label>-->
                                                <!--</div>-->
                                            <!--<div class="radio i-checks col-sm-4">-->
                                                <!--<label>-->
                                                    <!--<input type="radio" value="0"   {if condition = '$info.xian eq 0'} checke {/if} name="status"> <i></i> 禁用-->
                                                <!--</label>-->
                                            <!--</div>-->
                                        <!--</div>-->
                                    <!--</div>-->
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">违规扣除保证金：</label>
                                        <div class="input-group col-sm-4">
                                            <input id="tracking_number" type="text" class="form-control" name="baozhenjin" required="" aria-required="true">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="col-sm-4 col-sm-offset-4">
                                            <!--<input type="button" value="提交" class="btn btn-primary" id="postform"/>-->
                                            <button class="btn btn-primary" type="submit">提交</button>
                                        </div>
                                    </div>
                                </form>

                            </div>
                        </div>
                    </div>



                </div>
                <!--<div class="text-right">-->
                    <!--<button class="btn btn-primary" onclick="javascript:history.back(-1);">返回</button>-->
                <!--</div>-->
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />

            </div>
        </div>
    </div>
</div>
<script src="__STATIC__/admin/js/jquery.min.js?v=2.1.4"></script>
<script src="__STATIC__/admin/js/bootstrap.min.js?v=3.3.6"></script>
<script src="__STATIC__/admin/js/content.min.js?v=1.0.0"></script>
<script src="__STATIC__/admin/js/plugins/bootstrap-tagsinput/bootstrap-tagsinput.min.js"></script>
<script src="__STATIC__/admin/js/plugins/validate/jquery.validate.min.js"></script>
<script src="__STATIC__/admin/js/plugins/validate/messages_zh.min.js"></script>
<script src="__STATIC__/admin/js/plugins/iCheck/icheck.min.js"></script>
<script src="__STATIC__/admin/js/layui/layui.all.js"></script>
<script src="__STATIC__/admin/js/plugins/layer/layer.min.js"></script>
<script src="__STATIC__/admin/js/jquery.form.js"></script>
<script src="__STATIC__/admin/js/jquery.image-maps5.0.js"></script>
<script type="text/javascript">

    var index = '';
    function showStart(){
        index = layer.load(0, {shade: false});
        return true;
    }

    function showSuccess(res){

        layer.ready(function(){
            layer.close(index);
            if(1 == res.code){
                layer.alert(res.msg, {title: '友情提示', icon: 1, closeBtn: 0}, function(){
                    window.location.href = res.data;
                });
            }else if(111 == res.code){
                window.location.reload();
            }else{
                layer.msg(res.msg, {anim: 6});
            }
        });
    }

    $(document).ready(function(){
        $(".i-checks").iCheck({checkboxClass:"icheckbox_square-green",radioClass:"iradio_square-green",});

        // 添加管理员
        var options = {
            beforeSubmit:showStart,
            success:showSuccess
        };

        $('#commentForm').submit(function(){
            $(this).ajaxSubmit(options);
            return false;
        });
    });

    // 表单验证
    $.validator.setDefaults({
        highlight: function(e) {
            $(e).closest(".form-group").removeClass("has-success").addClass("has-error")
        },
        success: function(e) {
            e.closest(".form-group").removeClass("has-error").addClass("has-success")
        },
        errorElement: "span",
        errorPlacement: function(e, r) {
            e.appendTo(r.is(":radio") || r.is(":checkbox") ? r.parent().parent().parent() : r.parent())
        },
        errorClass: "help-block m-b-none",
        validClass: "help-block m-b-none"
    });

</script>
</body>
</html>